<!-- 新 Bootstrap 核心 CSS 文件 -->
<link rel="stylesheet" href="<?php echo URLPRE;?>static/template/<?php echo TEMPLATE_NAME?>/css/bootstrap.min.css">
<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
<script type="text/javascript" src="<?php echo URLPRE;?>static/public/js/jquery/jquery-1.11.1.min.js"></script>
<script src="<?php echo URLPRE;?>static/template/<?php echo TEMPLATE_NAME?>/js/rollimg.js"></script>
<script src="<?php echo URLPRE;?>static/template/<?php echo TEMPLATE_NAME?>/js/jquery.kxbdmarquee.js"></script>
<script src="<?php echo URLPRE;?>static/template/<?php echo TEMPLATE_NAME?>/js/sidemenu.js"></script>

<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script src="<?php echo URLPRE;?>static/template/<?php echo TEMPLATE_NAME?>/js/bootstrap.min.js"></script>
<link href="<?php echo URLPRE;?>static/template/<?php echo TEMPLATE_NAME?>/css/css.css" type="text/css" rel="stylesheet">
<link href="<?php echo URLPRE;?>static/template/<?php echo TEMPLATE_NAME?>/css/style.css" type="text/css" rel="stylesheet">
<link href="<?php echo URLPRE;?>static/template/<?php echo TEMPLATE_NAME?>/css/font-awesome.min.css" rel="stylesheet" />
<link href="<?php echo URLPRE;?>static/template/<?php echo TEMPLATE_NAME?>/css/font-awesome-ie7.min.css" rel="stylesheet" />
<script type="text/javascript" src="<?php echo URLPRE;?>static/template/<?php echo TEMPLATE_NAME?>/js/common.js"></script>
<link href="<?php echo URLPRE;?>static/public/Lib/artDialog/skins/default.css" rel="stylesheet" />
<script type="text/javascript" src="<?php echo URLPRE;?>static/public/Lib/artDialog/jquery.artDialog.source.js"></script>
<script type="text/javascript" src="<?php echo URLPRE;?>static/public/Lib/artDialog/plugins/iframeTools.js"></script>

<!-- 表单 JavaScript 文件 -->
<script type="text/javascript" src="<?php echo URLPRE;?>static/public/js/jquery/jquery.form.js"></script>
<script type="text/javascript" src="<?php echo URLPRE;?>static/public/Lib/validate/jquery.validate.1.9.js"></script>
<script type="text/javascript" src="<?php echo URLPRE;?>static/public/Lib/validate/jquery.metadata.js"></script>
<script type="text/javascript" src="<?php echo URLPRE;?>static/public/Lib/validate/messages_cn.js"></script>
<link href="<?php echo URLPRE;?>static/public/css/common.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<?php echo URLPRE;?>static/public/js/common.js"></script>
<script type="text/javascript">
    var loginUrl = '<?php echo site_url('/member/index/login_verify');?>' ;
    $(function(){
        $.ajax({
            url: loginUrl,
            cache: false,
            dataType: 'json',
            type: 'POST',
            data: {action:'login'},
            success: function (json) {
                if(json.status =='1'){
                    if(json.action == 'login'){
                        var str = "<a href='<?php echo site_url('member/index/center')?>'>你好,"+json.data+"&nbsp; &nbsp;</a><a href='javascript:void(0)' id='js-unset-login'>退出&nbsp; &nbsp;</a>" ;
                        $('#js-login-wrap').html(str);
                    }
                }
            }
        });

        $('#js-login-wrap').delegate('#js-unset-login','click',function(){
            $.ajax({
                url: loginUrl,
                cache: false,
                dataType: 'json',
                type: 'POST',
                data: {action:'unset'},
                success: function (json) {
                    if(json.status =='1'){
                        window.location.reload();
                    }
                }
            });

        });

    });

</script>

